package com.leyou.sh.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author balisong_fcs
 * @date 2021/1/12 0:04
 * @desc
 */
@FeignClient("auth-service")
public interface AuthClient {

    /**
     * 根据clientId和校验结果,获取JwtUtils专用key
     *
     * @param clientId
     * @param secret
     * @return
     */
    @GetMapping("/client/key")
    String getKey(@RequestParam("clientId") String clientId, @RequestParam("secret") String secret);
}
